package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "userinfo")
public class Userinfo implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 用户密码
     */
    @TableField(value = "pass")
    private String pass;

    /**
     * 用户头像
     */
    @TableField(value = "profile")
    private String profile;

    /**
     * 电话号码
     */
    @TableField(value = "phone")
    private String phone;


    /**
     * 维修次数
     */
    @TableField(value = "repairs_number")
    private Integer repairsNumber;

    @TableField(value = "user_name")
    private String userName;


    /**
     * 本次登录时间
     */
    @TableField(value = "login_time")
    private Timestamp loginTime;

    /**
     * 登录ip
     */
    @TableField(value = "login_ip")
    private String loginIp;

    /**
     * 注册时间
     */
    @TableField(value = "register_time")
    private Timestamp registerTime;
    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_NAME = "name";

    public static final String COL_PASS = "pass";

    public static final String COL_PROFILE = "profile";

    public static final String COL_PHONE = "phone";

    public static final String COL_REPAIRS_NUMBER = "repairs_number";

    public static final String COL_LOGIN_TIME = "login_time";

    public static final String COL_LOGIN_IP = "login_ip";

    public static final String COL_REGISTER_TIME = "register_time";

    public static final String COL_ENABLE = "enable";
}